<%@ page language="java" contentType="text/html; charset=UTF-8" isELIgnored="false"
    pageEncoding="UTF-8"%>
    
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<%@ taglib uri="http://sargue.net/jsptags/time" prefix="javatime" %>

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>新闻</title>
     <%@include file="../common/header.jsp" %>
         
</head>
<body>
<form action="${pathUrl }/home/news/index" method="post" id="mainForm">
<%@include file="../common/top.jsp" %>

    <div class="section clearfix" style="margin-top: 10px;">
        <!--/页面右边-->
        <div class="right-260">
            <div class="bg-wrap nobg">
                <div class="sidebar-box">

                    <h4>资讯类别</h4>
                    <ul class="navbar">
                        <c:forEach items="${newsCatalogVos}" var="vo">
                            <li>
                                <h5><a href="${pathUrl}/home/news/index?id=${vo.newsCatalog.id}">${vo.newsCatalog.name}</a></h5>

                                <p>
                                    <c:forEach items="${vo.newsCatalogs}" var="temp">
                                        <a href="${pathUrl}/home/news/index?id=${temp.id}">${temp.name}</a>
                                    </c:forEach>
                                </p>

                            </li>
                        </c:forEach>

                    </ul>
                </div>
            </div>
        </div>
        <div class="left-auto">
            <div class="bg-wrap">
                <div id="tablemain">
                    <ul class="n-list">
                        <c:forEach var="vo" items="${Pager.records}">
                            <li>
                                <h2><a href="${pathUrl }/home/news/detail?id=${vo.id}">${vo.newsTitle }</a></h2>
                                <div class="note">
                                    <b><img onerror="this.src='${pathUrl }/public/images/nopic.png'"  src="${pathUrl}${vo.newsImg}"></b>
                                    <p>${vo.subTitle }</p>
                                    <div class="info">
                                                    <span><i class="iconfont icon-date"></i>

                                                    </span>
                                        <span>${vo.commentCount }人评论</span>
                                        <span>${vo.countClick }次浏览</span>
                                    </div>
                                </div>
                            </li>
                        </c:forEach>
                    </ul>


                    <div class="pager" id="pager" style="padding-bottom: 10px;">
                        <a href="${url}?pageNow=1&name=${name}">首页</a><a href="${url}?pageNow=${Pager.current==1?1:Pager.current-1}&name=${name}">上一页</a>&nbsp;&nbsp; ${Pager.current}/${pages} &nbsp;&nbsp;<a href="${url}?pageNow=${Pager.current==pages?pages:Pager.current+1}&name=${name}">下一页</a> <a href="${url}?pageNow=${pages}&name=${name}">尾页</a>
                    </div>

                </div>
            </div>
        <!--/页面右边-->
        </div>
    </div>
</form>

<div class="section qitian-main">
    <img src="${pathUrl}/public/images/qitian.png">
</div>
<div class="footer-copyright">
    <p>软信商城©2013-2017 软信大学版权所有 京ICP备17017089号 京公网安备11000002000006号</p>
</div>
<jsp:include page="../../common/laypage.jsp"/>
  <script type="text/javascript">

  </script>
</body>
</html>